package com.example.service.impl;

import com.example.mapper.LoginMapper;
import com.example.pojo.UserPass;
import com.example.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceimpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    public UserPass login(UserPass userPass){

        UserPass userPass1=loginMapper.select(userPass);
        return userPass1;
    }

    @Override
    public void updatePassWord(UserPass userPass) {
        loginMapper.updatePassWord(userPass);
    }

}
